package cn.tedu.qxhouserent.house.service;

import cn.tedu.qxhouserent.house.pojo.param.NewsDetailAddNewParam;
import cn.tedu.qxhouserent.house.pojo.param.NewsDetailUpdateInfoParam;
import cn.tedu.qxhouserent.house.pojo.vo.NewsDetailListItemVO;
import cn.tedu.qxhouserent.house.pojo.vo.NewsDetailStandardVO;
import cn.tedu.qxhouserent.commons.pojo.vo.PageData;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface NewsDetailService {

    void addNew(NewsDetailAddNewParam newsDetailAddNewParam);

    PageData<NewsDetailListItemVO> list(Integer pageNum);

    PageData<NewsDetailListItemVO> list(Integer pageNum, Integer pageSize);

    NewsDetailStandardVO getStandardById(Long id);

    void updateById(Long id, NewsDetailUpdateInfoParam newsDetailUpdateInfoParam);

    void deleteById(Long id);

}
